import bsinRequest from '../utils/bsinRequest';

const aiAgentPath = process.env.contextPath_aiAgent;

export const getAgentPagetList = (params: any) => {
    return bsinRequest(aiAgentPath + '/aiAgent/getPageList', {
        bizParams: {
            ...params,
        },
    });
};

export const getRuleSetList = (params: any) => {
    return bsinRequest(aiAgentPath + '/aiAgent/page', {
        bizParams: {
            ...params,
        },
    });
};


export const deleteAgent = (params:any) => {
    return bsinRequest(aiAgentPath + '/aiAgent/delete', {
        bizParams: {
            ...params,
        },
    });
};

export const editAgent = (params: any) => {
    return bsinRequest(aiAgentPath + '/aiAgent/create', {
        bizParams: {
            ...params,
        },
    });
};